char extra_config[1024];
struct domain_create dom_info;
int paused = 0, debug = 0, daemonize = 1, console_autoconnect = 0,
- dryrun = 0, quiet = 0, monitor = 1;
+ quiet = 0, monitor = 1;
int opt, rc;
int option_index = 0;
static struct option long_options[] = {
help("create");
return 0;
case 'n':
- dryrun = 1;
+ dryrun_only = 1;
break;
case 'q':
quiet = 1;
dom_info.daemonize = daemonize;
dom_info.monitor = monitor;
dom_info.paused = paused;
- dom_info.dryrun = dryrun;
+ dom_info.dryrun = dryrun_only;
dom_info.quiet = quiet;
dom_info.config_file = filename;
dom_info.extra_config = extra_config;
const char *filename = NULL;
const char *p;
char extra_config[1024];
- int dryrun = 0;
int opt;
int option_index = 0;
static struct option long_options[] = {
help("cpupool-create");
return 0;
case 'n':
- dryrun = 1;
+ dryrun_only = 1;
break;
default:
fprintf(stderr, "option `%c' not supported.\n", optopt);
printf("scheduler: %s\n", sched);
printf("number of cpus: %d\n", n_cpus);
- if (dryrun)
+ if (dryrun_only)
return 0;
poolid = 0;
struct cmd_spec cmd_table[] = {
{ "create",
- &main_create, 0,
+ &main_create, 1,
"Create a domain from config file <filename>",
"<ConfigFile> [options] [vars]",
"-h Print this help.\n"
"-c Connect to the console after the domain is created.\n"
"-f=FILE, --defconfig=FILE\n Use the given configuration file.\n"
"-q, --quiet Quiet.\n"
- "-n, --dryrun Dry run - prints the resulting configuration.\n"
+ "-n, --dryrun Dry run - prints the resulting configuration\n"
+ " (deprecated in favour of global -N option).\n"
"-d Enable debug messages.\n"
"-e Do not wait in the background for the death of the domain."
},
"",
},
{ "cpupool-create",
- &main_cpupoolcreate, 0,
+ &main_cpupoolcreate, 1,
"Create a CPU pool based an ConfigFile",
"[options] <ConfigFile> [vars]",
"-h, --help Print this help.\n"
"-f=FILE, --defconfig=FILE Use the given configuration file.\n"
- "-n, --dryrun Dry run - prints the resulting configuration."
+ "-n, --dryrun Dry run - prints the resulting configuration.\n"
+ " (deprecated in favour of global -N option)."
},
{ "cpupool-list",
&main_cpupoollist, 0,